Optimal. Leaf size=140 \[ -\frac{4 a^2 \cos (e+f x) (c-c \sin (e+f x))^{9/2}}{105 c f \sqrt{a \sin (e+f x)+a}}-\frac{\cos (e+f x) (a \sin (e+f x)+a)^{3/2} (c-c \sin (e+f x))^{9/2}}{7 c f}-\frac{2 a \cos (e+f x) \sqrt{a \sin (e+f x)+a} (c-c \sin (e+f x))^{9/2}}{21 c f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.524338, antiderivative size = 140, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.079, Rules used = {2841, 2740, 2738} \[ -\frac{4 a^2 \cos (e+f x) (c-c \sin (e+f x))^{9/2}}{105 c f \sqrt{a \sin (e+f x)+a}}-\frac{\cos (e+f x) (a \sin (e+f x)+a)^{3/2} (c-c \sin (e+f x))^{9/2}}{7 c f}-\frac{2 a \cos (e+f x) \sqrt{a \sin (e+f x)+a} (c-c \sin (e+f x))^{9/2}}{21 c f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2841
Rule 2740
Rule 2738
Rubi steps
\begin{align*} \int \cos ^2(e+f x) (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{7/2} \, dx &=\frac{\int (a+a \sin (e+f x))^{5/2} (c-c \sin (e+f x))^{9/2} \, dx}{a c}\\ &=-\frac{\cos (e+f x) (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{9/2}}{7 c f}+\frac{4 \int (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{9/2} \, dx}{7 c}\\ &=-\frac{2 a \cos (e+f x) \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{9/2}}{21 c f}-\frac{\cos (e+f x) (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{9/2}}{7 c f}+\frac{(4 a) \int \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{9/2} \, dx}{21 c}\\ &=-\frac{4 a^2 \cos (e+f x) (c-c \sin (e+f x))^{9/2}}{105 c f \sqrt{a+a \sin (e+f x)}}-\frac{2 a \cos (e+f x) \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{9/2}}{21 c f}-\frac{\cos (e+f x) (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{9/2}}{7 c f}\\ \end{align*}
Mathematica [A] time = 1.24586, size = 166, normalized size = 1.19 \[ -\frac{c^3 (\sin (e+f x)-1)^3 (a (\sin (e+f x)+1))^{3/2} \sqrt{c-c \sin (e+f x)} (4725 \sin (e+f x)+665 \sin (3 (e+f x))+21 \sin (5 (e+f x))-15 \sin (7 (e+f x))+1050 \cos (2 (e+f x))+420 \cos (4 (e+f x))+70 \cos (6 (e+f x)))}{6720 f \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )^7 \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.228, size = 133, normalized size = 1. \begin{align*}{\frac{\sin \left ( fx+e \right ) \left ( 15\, \left ( \cos \left ( fx+e \right ) \right ) ^{8}+5\, \left ( \cos \left ( fx+e \right ) \right ) ^{6}\sin \left ( fx+e \right ) +16\, \left ( \cos \left ( fx+e \right ) \right ) ^{6}+13\,\sin \left ( fx+e \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{4}+16\, \left ( \cos \left ( fx+e \right ) \right ) ^{4}+29\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) +58\,\sin \left ( fx+e \right ) +58 \right ) }{105\,f \left ( \cos \left ( fx+e \right ) \right ) ^{7}} \left ( -c \left ( -1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{7}{2}}} \left ( a \left ( 1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{7}{2}} \cos \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.8217, size = 292, normalized size = 2.09 \begin{align*} \frac{{\left (35 \, a c^{3} \cos \left (f x + e\right )^{6} - 35 \, a c^{3} -{\left (15 \, a c^{3} \cos \left (f x + e\right )^{6} - 24 \, a c^{3} \cos \left (f x + e\right )^{4} - 32 \, a c^{3} \cos \left (f x + e\right )^{2} - 64 \, a c^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}{105 \, f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \mathit{sage}_{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]